package com.panda.mall.common.mallWares.entity;

import javax.validation.constraints.Size;
import javax.validation.constraints.NotNull;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;
import com.panda.mall.common.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

/**
* 商品分类关联表
* mall_goods_category_brand_relation
*/
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("mall_goods_category_brand_relation")
public class MallGoodsCategoryBrandRelation extends BaseEntity implements Serializable {

    /**
    * 主键id
    */
    @NotNull(message="[主键id]不能为空")
    @ApiModelProperty("主键id")
    private Long id;
    /**
    * 分类id
    */
    @ApiModelProperty("分类id")
    private Long categoryId;
    /**
    * 品牌id
    */
    @ApiModelProperty("品牌id")
    private Long brandId;
    /**
    * 分类名称
    */
    @Size(max= 40,message="编码长度不能超过40")
    @ApiModelProperty("分类名称")
    @Length(max= 40,message="编码长度不能超过40")
    private String categoryName;
    /**
    * 品牌名称
    */
    @Size(max= 40,message="编码长度不能超过40")
    @ApiModelProperty("品牌名称")
    @Length(max= 40,message="编码长度不能超过40")
    private String brandName;
}
